<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <style>
      .foo {
        width: 200px;
        height: 200px;
        background: green;
      }

      .too {
        font-size: 50px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <img v-bind:src="srcUrl" />
      <!--简写-->
      <img :src="srcUrl" />
      <div :class="arr">123</div>
    </div>
    <script>
      new Vue({
        el: "#app",
        data: {
          srcUrl: "vue\img\beida.jpg",
          c1: "foo",
          c2: "too",
          arr: ["foo", "too"],
        },
      });
    </script>
  </body>
</html>
